package com.cq.hd.member.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author much
 * @since 2024/04/20 15:50
 */
@Data
public class WithdrawalCheckBillSaveDto implements Serializable {
    private static final long serialVersionUID = 354129218853629524L;

    @NotNull
    @ApiModelProperty(value = "核算单id")
    private Long checkBillId;

    private List<CheckItem> items;

    @Data
    public static class CheckItem {
        @ApiModelProperty("描述")
        private String itemDesc;
        @ApiModelProperty(value = "金额")
        private BigDecimal itemAmt;
        @ApiModelProperty(value = "类型: 4-手动扣款 5-手动增加")
        private Integer type;
    }

}
